package cn.edu.sdjzu.xg.bysj.domain;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

/**
 02 * 表示一个目标导师和对应的志愿顺序
 03 * 本类使用了 lombok 注解
 04 */
 @Setter
 @Getter
 //无参构造器
 @NoArgsConstructor
 //全参构造器
 @AllArgsConstructor
 //志愿条目类
 public class ApplicationForSupervisorEntry
 implements Comparable<ApplicationForSupervisorEntry>, Serializable {
    private static final long serialVersionUID = 1L;
         //本类不需要 id
         //目标导师
         private Teacher teacher;
         //志愿顺序
         private int priority;
         private ApplicationForSupervisor applicationForSupervisor;

        @Override
 public int compareTo(ApplicationForSupervisorEntry
         applicationForSupervisorEntry) {
         return this.priority - applicationForSupervisorEntry.priority;
         }
 }